package com.shaokel.repository;

import com.shaokel.pojo.Comment;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 少丶客
 * @ClassName CommentRepository
 * @Description TODO
 * @Date 2020/6/30 13:22
 * @Vesion 1.0
 */
@Repository
public interface CommentRepository extends JpaRepository<Comment,Long> {

    List<Comment> findByBlogIdAndParentCommentNull(Long blogId, Sort sort);
}